package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 售票管理对象 ticket_sales
 * 
 * @author ruoyi
 * @date 2024-06-28
 */
public class TicketSales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID  */
    private Long orderId;

    /** 电影名称 */
    @Excel(name = "电影名称")
    private String filmName;

    /** 购票日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购票日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 座位信息 */
    @Excel(name = "座位信息")
    private String seat;

    /** 购买状态 */
    @Excel(name = "购买状态",readConverterExp = "1=未支付,2=支付成功")
    private String purchaseStatus;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setFilmName(String filmName) 
    {
        this.filmName = filmName;
    }

    public String getFilmName() 
    {
        return filmName;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setSeat(String seat) 
    {
        this.seat = seat;
    }

    public String getSeat() 
    {
        return seat;
    }
    public void setPurchaseStatus(String purchaseStatus) 
    {
        this.purchaseStatus = purchaseStatus;
    }

    public String getPurchaseStatus() 
    {
        return purchaseStatus;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("filmName", getFilmName())
            .append("date", getDate())
            .append("seat", getSeat())
            .append("purchaseStatus", getPurchaseStatus())
            .append("orderTime", getOrderTime())
            .toString();
    }
}
